package com.nidu.demo.tenant.mapper.dataobject;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.nidu.demo.base.BaseDO;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Set;

@Data
@EqualsAndHashCode(callSuper = true)
@TableName("sys_tenant_package")
public class TenantPackageDO extends BaseDO {
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 租户套餐名称
     */
    private String name;

    /**
     * 菜单ID列表
     */
    @TableField(typeHandler = JacksonTypeHandler.class)
    private Set<Long> menuIds;

    /**
     * 描述
     */
    private String remark;

    /**
     * 排序值
     */
    private Integer sortOrder;

    /**
     * 状态
     */
    private Integer status;

    /**
     * 是否删除
     */
    private Boolean deleted;
}
